using System;

namespace Slaks.Descriptions
{
	/// <summary>
	/// Description of the specific implementation of Class
	/// </summary>
	[AttributeUsage(System.AttributeTargets.Class,
                  AllowMultiple = false, Inherited = false) ]
	public class ModuleDescriptionAttribute:System.Attribute
	{
    /// <summary>
    /// Holds description of the Dbase implementation
    /// </summary>
    private string m_description;
    private string m_author;

    /// <summary>
    /// Constructor
    /// </summary>
    /// <param name="description">the description of the Reader or Filter implementation</param>
		public ModuleDescriptionAttribute(string description,string author)
		{
		  	m_description = description;
        m_author = author;
		}

    /// <summary>
    /// Get description of Reader or Filter implementation
    /// </summary>
    /// <returns></returns>
    public string GetDescription() { return m_description; }

    /// <summary>
    /// Get author of the implementation
    /// </summary>
    /// <returns></returns>
    public string GetAuthor() { return m_author; }

    public override string ToString()
    {
      return m_description + " ( "  + m_author + " )";
    }


	}
}
